package register

import (
	box "github.com/Amovement/password-box/pkg/apis/v1/box"
	"github.com/gin-gonic/gin"
)

func InitBoxRouter(r *gin.Engine) {

	boxController := box.BoxRegister{}

	boxGroup := r.Group("/box")
	{
		boxGroup.POST("/list", boxController.ListBox)
		boxGroup.POST("/create", boxController.CreateBox)
		boxGroup.POST("/get", boxController.GetBox)
		boxGroup.POST("/delete", boxController.DeleteBox)
	}

}
